﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace FooFun.Web.Controls
{
    public class TabDataElementControl : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            string tab = HttpContext.Current.Request["tab"];

            foreach (string name in base.ContentNames)
            {
                if (name.Equals(
                    tab, StringComparison.OrdinalIgnoreCase))
                {
                    this.ShowContent(name);
                    break;
                }
            }
        }
    }
}
